home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch15 / 15fig16.wrl < prev    next >
Text File  |  1996-09-22  |  664b  |  34 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Shape {
  6.     appearance Appearance {
  7.         material Material {
  8.             diffuseColor 1.0 0.3 0.3
  9.         }
  10.     }
  11.     geometry Extrusion {
  12.         creaseAngle 1.57
  13.         crossSection [
  14.         # Circle
  15.              1.00  0.00,   0.92 -0.38,
  16.              0.71 -0.71,   0.38 -0.92,
  17.              0.00 -1.00,  -0.38 -0.92,
  18.             -0.71 -0.71,  -0.92 -0.38,
  19.             -1.00 -0.0,   -0.92  0.38,
  20.             -0.71  0.71,  -0.38  0.92,
  21.              0.00  1.00,   0.38  0.92,
  22.              0.71  0.71,   0.92  0.38,
  23.              1.00  0.00
  24.         ]
  25.         spine [
  26.         # Straight-line
  27.             0.0 0.0 0.0,  0.0 4.0 0.0,
  28.         ]
  29.         orientation [
  30.             0.0 1.0 0.0 0.0,  1.0 0.0 0.0 0.785
  31.         ]
  32.     }
  33. }
  34.